<?php
class Admin_AccueilController extends Zend_Controller_Action 
{	
	public function preDispatch()
	{
		$auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));

		if (!$auth->hasIdentity()) {
			$this->_redirect('/admin/index');
		}
	}
	
	/**
	 * The default action - show the home page
	 */
	public function indexAction() 
	{
		$this->view->title = "Partie Administration - Accueil";
	}

}